package student.aistar.design.decorator;

public class TestMilk {
    public static void main(String[] args) {
        //1.原始对象
        Milk milk = new NaiTea();
        //2.允许像一个现有的对象添加新的功能, 又不改变其结构
        BurDen burDen = new BuDingTea(milk);
        System.out.println(milk.teaName() + ":" + milk.price());

        System.out.println(burDen.getPrice());

    }
}
